//
//  HMApplyCancleFhotoTableViewCell.m
//  HMMarket
//
//  Created by haohao on 2017/6/28.
//  Copyright © 2017年 homai. All rights reserved.
//

#import "HMApplyCancleFhotoTableViewCell.h"

#define cellWidth (KWidthSCREEN - marin * 4) / 3
#define marin 20
@implementation HMApplyCancleFhotoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    // Initialization code
}

- (void)setImageArray:(NSArray *)imageArray {
    _imageArray = imageArray;
    for (int i = 0; i < _imageArray.count; i++) {
        UIImageView *imageVI = [[UIImageView alloc] initWithFrame:CGRectMake(marin * (i + 1) + cellWidth * i, 5, cellWidth, cellWidth)];
        NSString * imgStr = [NSString stringWithFormat:@"%@%@",kImageUrl,_imageArray[i]];
        [imageVI sd_setImageWithURL:[NSURL URLWithString:imgStr]];
        [self addSubview:imageVI];
    }
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
